﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions;

namespace RightControl.Model {
     [Table("sub_product")]
    public class SubProduct : Entity {
         public int ProductId { get; set; }
          [Display(Name = "子Sku")]
         public String SkuId { get; set; }
         
         [Display(Name = "颜色")]
         public String Color { get; set; }

         [Display(Name = "尺寸")]
         public String Size { get; set; }
         
         public Decimal Price { get; set; }
         public string ImageUrl { get; set; }

         public string KeyAttributes { get; set; }

         public SubProduct(int userId) {
             CreateBy = userId;
             CreateOn = DateTime.Now;
         }

         public SubProduct() {
             UpdateOn = DateTime.Now;
         }

    }
}
